package com.hscm.boss.mvc.model.from.user;


import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserEditFrom {

    private String id;

    @NotNull(message = "缺少登录名称")
    private String loginName;

    @NotNull(message = "缺少电话")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "您的手机号格式错误")
    private String phone;

    @NotNull(message = "缺少平台名称")
    private String shopName;

    @NotNull(message = "缺少经营范围名")
    private String shopScope;

    @NotNull(message = "缺少邮箱")
    @Email(message = "邮箱的格式不对")
    private String userEmail;

}
